﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.Text;

namespace OperateCamera
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        /// 
        [STAThread]
        static void Main()
        {

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //开启Http服务器
            new Thread(new ThreadStart(delegate {

                HttpServer.Listen();
            
            })).Start();

            //开启 websocket 8080  等待 推送图片服务

            new Thread(new ThreadStart(delegate {

                websocket.Run();

            })).Start();

            common.app = new Form1();

            Application.Run(common.app);
        }


       



    }
}
